package bai2;

public class TestMain {
	public Task[] PriQueue;
	public void test(Task a, Task b){
		if (a.priority>b.priority) {
			System.out.print("Task a quan trong hon");
			dotask(a);
		}
		if (a.priority==b.priority) {
			if (a.complex>b.complex){
				System.out.print("Task a,b quan trong nhu nhau, a phuc tap hon");
				dotask(a);
			}
			if (a.complex==b.complex){
				System.out.print("Task a,b quan trong, phuc tap nhu nhau");
				dotask(a);
			}
			else {
				System.out.print("Task a,b quan trong nhu nhau, b phuc tap hon");
				dotask(b);
			}
		}
		else {
			System.out.print("Task a quan trong hon");
			dotask(b);
		}
	}
	public void removetask(Task a){
		
	}
	public void dotask(Task a){
		removetask(a);
	}
	public static void main(String[] arg) {
		
	}
}
